package com.example.neusoftfood_c213_zhong.service;

import com.example.neusoftfood_c213_zhong.beans.CollectResult;
import com.example.neusoftfood_c213_zhong.beans.CollectStatus;
import com.example.neusoftfood_c213_zhong.beans.Shop;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

public interface ShopService {
    @GET("getAllShops.do")
    Call<List<Shop>> getAllShops();


    @GET("isCollected.do")
    Call<CollectStatus>isCollected(@Query("user_id")String user_id,
                                   @Query("shop_food_id")int shop_food_id,
                                   @Query("flag")int flag);


    @GET("userCollectShop.do")
    Call<CollectResult>userCollectShop(@Query("user_id")String user_id,
                                       @Query("shop_id")int shop_id);
}
